<%--
  Created by IntelliJ IDEA.
  User: ThinkPad
  Date: 2021/12/22
  Time: 1:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<html>
<head>
    <title>小汉堡用户注册</title>
</head>
<body>
    <br /><br />
    <h2 style="text-align: center;color: aquamarine">欢迎您注册小汉堡</h2>
    <br /><br />
    <form name="register" action="${pageContext.request.contextPath}/registerMessage.jsp" method="post">
        <table style="width: 60%;margin-left: 20%">
            <tr>
                <td style="width: 150px"><div style="text-align: right">请输入账号：</div></td>
                <td><label>
                    <input type="text" name="username" required>
                </label></td>
            </tr>
            <tr>
                <td style="width: 150px"><div style="text-align: right">请输入密码：</div></td>
                <td style="width: 250px"><label>
                    <input type="password" name="password1" required pattern="^[A-Za-z0-9]{6,20}$">
                </label></td>
                <td style="color: fuchsia">(要求：只能包含大小写英文和数字，长度在6~20位)</td>
            </tr>
            <tr>
                <td style="width: 150px"><div style="text-align: right">确认密码：</div></td>
                <td><label>
                    <input type="password" name="password2" required pattern="^[A-Za-z0-9]{6,20}$">
                </label></td>
            </tr>
        </table>
        <br>
        <input type="submit" value="注册" style="margin-left: 45%" >
    </form>
    <br /><br /><br /><br /><br /><br />
<%@include file="tail.jsp"%>
</body>
</html>
